package com.jzo2o.orders.manager.controller.operation;

import com.jzo2o.api.orders.dto.response.OrderSimpleResDTO;
import com.jzo2o.common.model.PageResult;
import com.jzo2o.orders.manager.model.dto.request.OrderPageQueryReqDTO;
import com.jzo2o.orders.manager.service.IOrdersManagerService;
import io.swagger.annotations.Api;
import io.swagger.annotations.ApiOperation;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.web.bind.annotation.*;

/**
 * @author itcast
 */
@RestController("operationOrdersController")
@Api(tags = "运营端-订单相关接口")
@RequestMapping("/operation/orders")
public class OperationOrdersController {

    @Autowired
    private IOrdersManagerService ordersManagerService;

    /**
     * 运营端订单滚动分页查询
     *
     * @param orderPageQueryReqDTO
     * @return
     */
    @GetMapping("/page")
    @ApiOperation("订单滚动分页查询")
    public PageResult<OrderSimpleResDTO> operationQueryList(OrderPageQueryReqDTO orderPageQueryReqDTO) {
        return ordersManagerService.operationQueryList(orderPageQueryReqDTO);
    }
}
